{# twig template #}
{% extends "_layouts/default.twig" %}

{% set _pageRoute = '/_mder' %}

{% block body %}
    <h1> :( {{ _globals.lang.tl('pageNotFound') }}</h1>
    <hr>
    <div class="alert alert-warning alert-dismissible fade in" role="alert">
        {#<button type="button" class="close" data-dismiss="alert" aria-label="Close">#}
            {#<span aria-hidden="true">&times;</span></button>#}
        <h3>{{ _globals.lang.tl('pageNotFoundTitle') }}</h3>
        <p style="font-size: 2rem;margin: 15px 0;">{{ _globals.lang.tl('pageNotFoundMsg') }}</p>
        <p>
            {% if _globals.user.isLogin() %}
                <a type="button" class="btn btn-info" href="{{ createPage }}">
                    <span class="glyphicon glyphicon-plus"></span>
                    {{ _globals.lang.tl('createPage') }}</a>
            {% else %}
                <a type="button" class="btn btn-primary" href="{{ _globals.config.urls.login }}">
                    <span class="glyphicon glyphicon-log-in"></span>
                    {{ _globals.lang.tl('login') }}</a>
            {% endif %}
            <a type="button" class="btn btn-success" href="/">
                <span class="glyphicon glyphicon-share-alt"></span>
                {{ _globals.lang.tl('backHome') }}</a>
        </p>
    </div>
{% endblock %}

{% block footer %}
{% endblock %}